package com.ruoyi.basic.domain;

import com.baomidou.mybatisplus.annotation.*;

import javax.validation.constraints.NotBlank;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

import java.util.Date;

/**
 * 工作经历对象 basic_work
 * 
 * @author ruoyi
 * @date 2021-08-22
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_work")
public class BasicWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工作id */
    @TableId(type = IdType.AUTO)
    private Long workId;

    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    private String userType;

    @TableField(exist = false)
    @Excel(name = "身份证号")
    private String idCard;

    @TableField(exist = false)
    private Long deptId;

    /** 工作时间 */
    @NotBlank(message = "工作时间不能为空")
    @Excel(name = "工作时间")
    private String workTime;

    /** 工作岗位 */
    @Excel(name = "工作岗位")
    private String workPost;

    /** 合同开始时间 */
    @Excel(name = "合同开始时间")
    private String startTime;

    /** 合同结束时间 */
    @Excel(name = "合同结束时间")
    private String endTime;

    /** 是否全职 */
    @Excel(name = "是否全职", dictType = "basic_work_type", comboDict = "basic_work_type")
    private String workType;

    /** 职务 */
    @Excel(name = "编制情况", dictType = "basic_work_duty", comboDict = "basic_work_duty")
    private String workDuty;

    /** 是否默认 */
    @Excel(name = "是否默认", dictType = "sys_yes_no", comboDict = "sys_yes_no")
    private String isDefault;

    /** 附件地址 */
    private String fileUrl;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

}
